package cn.iocoder.yudao.module.api.promotion.fod.bo;

import cn.iocoder.yudao.framework.business.basic.pojo.vo.BaseVO;
import cn.iocoder.yudao.framework.validation.Discount;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.PositiveOrZero;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 店铺首单优惠折扣配置
 *
 * @author 山野羡民（1032694760@qq.com）
 */
@Data
@NoArgsConstructor
public class FirstOrderDiscountBO extends BaseVO {

    @Schema(description = "门槛金额，单位为分")
    @PositiveOrZero
    private Integer amount = 0;

    @Schema(description = "折扣，范围0-10")
    @Discount
    private Double discount = 10D;

}
